
public class Estate extends Property{
	private int colorGroup;
	//0	first colour group
	//1 second colour group
	//2 third colour group
	//3 fourth colour group
	//4 fifth colour group
	//5 sixth colour group
	//6 seventh colour group
	//7 eighth colour group
	private int numberOfHouse = 0;
	private boolean canHaveHouse = false;
	private boolean canLoseHouse = false;
	
	
	public Estate(String name, String propertyName, int location, int price, int colorGroup, TitleDeed titleDeed) {
		this.setTitleDeed(titleDeed);
		this.setPrice(price);
		this.setName(name);
		this.setLocation(location);
		this.setPropertyName(propertyName);
		this.setColorGroup(colorGroup);
	}
	
	public void setColorGroup(int colorGroup) {
		this.colorGroup = colorGroup;
	}
	public int getColorGroup() {
		return colorGroup;
	}
	public void setNumberOfHouse(int numberOfHouse) {
		this.numberOfHouse = numberOfHouse;
	}
	public int getNumberOfHouse() {
		return numberOfHouse;
	}

	public void setCanHaveHouse(boolean canHaveHouse) {
		this.canHaveHouse = canHaveHouse;
	}

	public boolean canHaveHouse() {
		return canHaveHouse;
	}

	public void setCanLoseHouse(boolean canLoseHouse) {
		this.canLoseHouse = canLoseHouse;
	}

	public boolean canLoseHouse() {
		return canLoseHouse;
	}



}
